//
//  DrapesController.h
//  GKBHouse
//
//  Created by  on 12-7-1.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NewEquipment.h"
@interface DrapesController : UIViewController
{
    IBOutlet UIImageView *mainImageView;
    IBOutlet UIButton *open;
    IBOutlet UIButton *stop;
    IBOutlet UIButton *close;
    NSInteger   timeIndex;
    CGFloat     totalTime;
}
@property (retain) NewEquipment *equipment;
@property (retain) NSString *order;
@property (retain) NSTimer *autoStopAnimation;
- (id)initWithEquipment:(NewEquipment *)equ;

- (void)initTopBar;
- (void)closeView;

- (void)showDrapes:(float)progress;

- (void)openAnimating;
- (void)closeAnimating;
- (void)stopAnimating;

- (void)openAnimatingEnd;
- (void)closeAnimatingEnd;

- (void)setAnimationEnd:(SEL)action;
- (void)AnimationDidStop:(NSTimer *)timer;
- (void)stopTimer;
#pragma mark - 电器设备开关状态
- (void)openDrapes;
- (void)closeDrapes;
- (void)stopDrapes;

- (void)ctlDevice:(NSString *)aOrder;
- (void)ctlDeviceEnd:(NSDictionary *)dic;

- (void)setViewState:(NSString *)aOrder;

- (void)ctrStopDrapes;
- (void)ctrStopDrapesEnd:(NSDictionary *)dic;
@end
